﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NCHQMES
{
    /// <summary>
    /// 报警接口
    /// </summary>
    [Serializable]
    public class SCADA_Warning
    {
        /// <summary>
        /// 发送数据
        /// </summary>
        [Serializable]
        public class Write : CommonClass.Common_WriteHead
        {
            public Main MAIN = new Main();
        }

        /// <summary>
        /// 接收数据
        /// </summary>
        [Serializable]
        public class Read : CommonClass.Common_ReadHead
        {
            public Main MAIN = new Main();
        }

        /// <summary>
        /// MAIN结构
        /// </summary>
        [Serializable]
        public class Main : CommonClass.Common_Main
        {
            public Main()
            {
                Type = "";
                Code = "";
                Descr = "";
                EQSN = "";
                OperatorName = "";
                HostName = "";
                IP = "";
                Time = "";
            }

            /// <summary>
            /// 类型
            /// </summary>
            public string Type = "";

            /// <summary>
            /// 报警代码
            /// </summary>
            public string Code = "";

            /// <summary>
            /// 报警描述
            /// </summary>
            public string Descr = "";

            /// <summary>
            /// 时间
            /// </summary>
            public string Time;
        }
    }
}